home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkMenuBar.h.z / VkMenuBar.h
C/C++ Source or Header  |  1996-09-20  |  2KB  |  61 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17.  
  18. #ifndef VKMENUBAR_H
  19. #define VKMENUBAR_H
  20.  
  21. #include <Vk/VkMenu.h>
  22.  
  23. class VkSubMenu;
  24. class VkWindow;
  25. class VkHelpPane;
  26.  
  27. class VkMenuBar : public VkMenu {
  28.  
  29.   friend class VkWindow;
  30.  
  31.   public:
  32.  
  33.     VkMenuBar(Boolean showHelpPane = TRUE);
  34.     VkMenuBar(const char *name, Boolean showHelpPane = TRUE);
  35.     VkMenuBar(VkMenuDesc *, XtPointer defaultCientData= NULL, Boolean showHelpPane = TRUE);
  36.     VkMenuBar(const char *name, VkMenuDesc *, XtPointer defaultCientData= NULL, Boolean showHelpPane = TRUE);
  37.  
  38.     virtual ~VkMenuBar();
  39.  
  40.     virtual void  build(Widget);
  41.  
  42.     VkHelpPane *helpPane() const {return _helpPane;}
  43.     virtual VkMenuItemType menuType ();
  44.     virtual const char* className();
  45.     Widget baseWidget();
  46.  
  47.     void showHelpPane(Boolean showHelpPane = TRUE);
  48.  
  49.   protected:
  50.  
  51.     VkHelpPane  *_helpPane;
  52.     VkWindow    *_associatedWindow;
  53.     Boolean      _showHelpPane;
  54.  
  55.     void attachWindow(VkWindow *win) { _associatedWindow = win; }
  56.     Widget menuParent();
  57.     virtual void  addHelpPane();
  58. };
  59. #endif
  60.  
  61.